package com.ihisomp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ihisomp.base.Result;
import com.ihisomp.entity.SysPosition;
import com.ihisomp.mapper.SysPositionMapper;
import com.ihisomp.service.ISysPositionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * <p>
 * 职位信息 服务实现类
 * </p>
 *
 * @author zy
 * @since 2022-04-19
 */
@Service
public class SysPositionServiceImpl extends ServiceImpl<SysPositionMapper, SysPosition> implements ISysPositionService {

    /**
     * 职位数据列表
     *
     * @return
     */
    @Override
    public Result selectList() {
        QueryWrapper<SysPosition> query = new QueryWrapper<>();
        query.orderByAsc("seq_no");
        List<SysPosition> roles = baseMapper.selectList(query);
        return Result.ok(roles);
    }
}
